<!--<?php
if ($a == 'del') {print <<<EOT
-->
<script language="JavaScript" id="o_del">
function o_del() {
	var rText = ajax.request.responseText.split('\\t');
	if (rText[0] == 'del') {
		getObj('lou_' + rText[1]).parentNode.removeChild(getObj('lou_' + rText[1]));
	} else if (rText[0] == 'jump') {
		window.location.href = '{$basename}q=$q&cyid=$cyid&a=thread';
	} else {
		ajax.guide();
	}
}
</script>
	<form action="{$basename}q=$q&a=$a&cyid=$cyid" onsubmit="return false;" method="post">
	<input type="hidden" name="tid" value="$tid" />
	<input type="hidden" name="step" value="3" />
	<div style="width:200px;" class="cc">
		<div class="p10 b f14">您确定要删除该贴吗？</div>
		<div class="pdD fr"><input type="button" class="bt3" value="删 除" onclick="ajax.submit(this.form,o_del)" /> <input type="button" value="取消" class="bt" onclick="closep();" /></div>
	</div>
	</form>
<!--
EOT;
} elseif ($a == 'edit') {print <<<EOT
-->
<script language="JavaScript" id="o_edit">
function o_edit() {
	var rText = ajax.request.responseText.split('\\t');
	if (rText[0] == 'edit') {
		if (typeof rText[3] == 'undefined') {
			getObj('read_' + rText[1]).innerHTML = rText[2];
		} else {
			getObj('subject_tpc').innerHTML = rText[2];
			getObj('read_' + rText[1]).innerHTML = rText[3];
		}
	} else {
		ajax.guide();
	}
}
</script>
	<form action="{$basename}q=$q&a=$a&cyid=$cyid" onsubmit="return false;" method="post">
	<input type="hidden" name="tid" value="$tid" />
	<input type="hidden" name="step" value="3" />
	<div class="cc" style="width:400px">
<!--
EOT;
if ($rt['tpcid'] == 0) {print <<<EOT
-->
		<div class="pdD"><input class="input" type="text" name="subject" value="$rt[subject]" /></div>
<!--
EOT;
}print <<<EOT
-->
		<div class="pdD"><textarea name="content" style="width:400px;height:120px">{$rt[content]}</textarea></div>
		<div class="pdD fr"><input type="button" class="bt3" value="提 交" onclick="ajax.submit(this.form,o_edit)" /> <input type="button" value="取消" class="bt" onclick="closep();" /></div>
	</div>
	</form>
<!--
EOT;
} elseif ($a == 'join') {print <<<EOT
-->
	<form action="{$basename}q=$q&a=$a&cyid=$cyid" onsubmit="return false;" method="post">
	<input type="hidden" name="step" value="3" />
	<div style="width:200px;" class="cc">
		<div class="p10 b f14">您确定要加入该群组吗？</div>
		<div class="pdD fr"><input type="button" class="bt3" value="加 入" onclick="ajax.submit(this.form)" /> <input type="button" value="取消" class="bt" onclick="closep();" /></div>
	</div>
	</form>
<!--
EOT;
} elseif ($a == 'out') {print <<<EOT
-->
	<form action="{$basename}q=$q&a=$a&cyid=$cyid" onsubmit="return false;" method="post">
	<input type="hidden" name="step" value="3" />
	<div style="width:200px;" class="cc">
		<div class="p10 b f14">
<!--
EOT;
if ($colony['admin'] == $windid) {print <<<EOT
-->
			您是该群组的创建者，您确定要解散该群组吗？
<!--
EOT;
} else {print <<<EOT
-->
			您确定要退出该群组吗？
<!--
EOT;
}print <<<EOT
-->
		</div>
		<div class="pdD fr"><input type="button" value="确 定" class="bt3" onclick="ajax.submit(this.form)" /> <input type="button" value="取消" class="bt" onclick="closep();" /></div>
	</div>
	</form>
<!--
EOT;
} elseif ($a == 'delalbum') {print <<<EOT
-->
	<form action="{$basename}q=$q&a=$a&cyid=$cyid" onsubmit="return false;" method="post">
	<input type="hidden" name="aid" value="$aid" />
	<input type="hidden" name="step" value="3" />
	<div style="width:360px;" class="cc">
		<div class="b f14 p10">删除相册将同时删除所有相片，您确定要删除吗？</div>
		<div class="tar fr pdD"><input class="bt3" type="button" value="删 除" onclick="ajax.submit(this.form)" /> <input type="button" value="取消" onclick="closep();" class="bt" /></div>
	</div>
	</form>
<!--
EOT;
} elseif ($a == 'editalbum') {print <<<EOT
-->
	<form action="{$basename}q=photos&a=editalbum" onSubmit="return false;" method="POST">
		<input type="hidden" name="step" value="3" />
		<input type="hidden" name="aid" value="$aid" />
		<table cellpadding="0" cellspacing="0" width="450px">
			<tr>
				<td width="14%" align="right" class="gray">相册名</td>
				<td><input type="text" id="ajax_aname" name="aname" value="$rt[aname]" />&nbsp; <span id="ajax_aname_warn" class="gray">限 24 字节</span></td>
			</tr>
			<tr>
				<td align="right" class="gray">描述</td>
				<td>
					<textarea id="ajax_aintro" name="aintro" style="width:350px;height:70px">{$rt[aintro]}</textarea>
					<span id="ajax_aintro_warn" class="gray fr" style="margin-right:15px;"> 限 255 字节</span>
				</td>
			</tr>
			<tr>
				<td align="right" class="gray">可见度</td>
				<td><select name="private"><option value="0" $select_0>全站用户可见</option><option value="1" $select_1>仅好友可见</option></select></td>
			</tr>
			<tr>
				<td></td>
				<td><input class="bt3" type="submit" value="编辑相册" onclick="ajax.submit(this.form)"/> <input type="button" class="bt" value="取消" onclick="closep();" /></td>
			</tr>
		</table>
	</form>
<script language="JavaScript">
var charset = '$db_charset';
initCheckTextNum('ajax_aname','ajax_aname_warn',24);
initCheckTextNum('ajax_aintro','ajax_aintro_warn',255);
</script>
<!--
EOT;
} elseif ($a == 'uintro') {print <<<EOT
-->
	<table cellpadding="0" cellspacing="0" width="400">
		<tr><th colspan="2" class="h" style="cursor:move" onmousedown="read.move(event);"><span class="fr" style="margin-top:2px;cursor:pointer" onclick="closep();"><img src="$imgpath/close.gif" /></span>通讯资料</th></tr>
		<tr>
			<td width="30%">用户</td>
			<td>
				$uinfo[username]
<!--
EOT;
if ($winduid == $uinfo['uid']) {print <<<EOT
-->
				[<a href="{$basename}q=$q&a=$a&cyid=$cyid&job=set">编辑我的通讯录</a>]
<!--
EOT;
}print <<<EOT
-->
			</td>
		</tr>
		<tr>
			<td>真实姓名</td>
			<td>$uinfo[realname]</td>
		</tr>
		<tr>
			<td>性别</td>
			<td>
<!--
EOT;
if ($uinfo['gender'] == '1') {print <<<EOT
-->
				男
<!--
EOT;
} elseif ($uinfo['gender'] == '2') {print <<<EOT
-->
				女
<!--
EOT;
} else {print <<<EOT
-->
				保密
<!--
EOT;
}print <<<EOT
-->
			</td>
		</tr>
		<tr>
			<td>电话</td>
			<td>$uinfo[tel]</td>
		</tr>
		<tr>
			<td>邮箱</td>
			<td>$uinfo[email]</td>
		</tr>
		<tr>
			<td>联系地址</td>
			<td>$uinfo[address]</td>
		</tr>
		<tr>
			<td>介绍说明</td>
			<td>$uinfo[introduce]</td>
		</tr>
	</table>
<!--
EOT;
}elseif($a=='recommend'){print <<<EOT
-->
<div class="tal">
<form method="post" action="mode.php?m=o&q=share&see=recommend&ajax=1" onsubmit="return false;">
<input type="hidden" name="step" value="2" />
<table width="100%" cellspacing="0" cellpadding="5">
	<tr><th colspan="2" class="h" style="cursor:move" onmousedown="read.move(event);">推荐</th></tr>
	<tr>
		<td width="24%" align="center">推荐方式：</td>
		<td>短消息推荐</td>
	</tr>
	<tr>
		<td align="center">对方姓名：</td>
		<td><input type="text" class="input" name="sendtoname" size="25" value="" /></td>
	</tr>
	<tr>
		<td align="center">标题：</td>
		<td><input type="text" class="input" name="subject" size="44" value="{$windid} 给您$atc_name" /></td>
	</tr>
	<tr><td align="center">内容：</td>
		<td><textarea rows="6" style="width:300px" name="atc_content" onkeydown="ajax.quickpost(event,this.form)">您好！我在$db_bbsname($db_bbsurl/?u=$winduid)\n这个信息，认为很有价值，特推荐给您。\n\n主要信息：\n$title\n\n描述：\n$descrip\n\n希望您能喜欢。</textarea></td>
	</tr>
</table><ul><li style="text-align:center;padding:4px 0;"><input type="button" class="bt3" name="ajaxsubmit" style="width:80px;" onclick="ajax.submit(this.form);" value="提 交" />&nbsp;<input class="bt" type="button" value="取消" onclick="closep();"/></li></ul></form>
</div>
<!--
EOT;
}?>-->